package com.honeyms.project.blog.blogcontent.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.honeyms.framework.aspectj.lang.annotation.Excel;
import com.honeyms.framework.web.domain.BaseEntity;

/**
 * 帖子内容对象 blog_content
 * 
 * @author honeyms
 * @date 2020-10-12
 */
public class BlogContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子`id */
    private Long contentId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 类型  (1系统,2用户)*/
    @Excel(name = "类型")
    private Integer type;

    /** 标签 */
    @Excel(name = "标签")
    private Integer tags;

    /** 类别 */
    @Excel(name = "类别")
    private String categories;

    /** 是否上热门 */
    @Excel(name = "是否上热门")
    private Integer ishot;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createdId;

    /** 作者账号 */
    @Excel(name = "作者账号")
    private String author;

    /** 最近修改人id */
    @Excel(name = "最近修改人id")
    private Long editId;

    /** 开启评论 */
    @Excel(name = "开启评论")
    private Integer allowComment;

    /** 状态  (1发布,2草稿)*/
    @Excel(name = "状态")
    private Integer status;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date editDate;

    /** 是否为工具 */
    @Excel(name = "是否为工具")
    private Integer istool;

    public void setContentId(Long contentId)
    {
        this.contentId = contentId;
    }

    public Long getContentId()
    {
        return contentId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setTags(Integer tags)
    {
        this.tags = tags;
    }

    public Integer getTags()
    {
        return tags;
    }
    public void setCategories(String categories)
    {
        this.categories = categories;
    }

    public String getCategories()
    {
        return categories;
    }
    public void setIshot(Integer ishot)
    {
        this.ishot = ishot;
    }

    public Integer getIshot()
    {
        return ishot;
    }
    public void setCreatedId(Long createdId)
    {
        this.createdId = createdId;
    }

    public Long getCreatedId()
    {
        return createdId;
    }
    public void setAuthor(String author)
    {
        this.author = author;
    }

    public String getAuthor()
    {
        return author;
    }
    public void setEditId(Long editId)
    {
        this.editId = editId;
    }

    public Long getEditId()
    {
        return editId;
    }
    public void setAllowComment(Integer allowComment)
    {
        this.allowComment = allowComment;
    }

    public Integer getAllowComment()
    {
        return allowComment;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setEditDate(Date editDate)
    {
        this.editDate = editDate;
    }

    public Date getEditDate()
    {
        return editDate;
    }
    public void setIstool(Integer istool)
    {
        this.istool = istool;
    }

    public Integer getIstool()
    {
        return istool;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("type", getType())
            .append("tags", getTags())
            .append("categories", getCategories())
            .append("ishot", getIshot())
            .append("createdId", getCreatedId())
            .append("author", getAuthor())
            .append("editId", getEditId())
            .append("allowComment", getAllowComment())
            .append("status", getStatus())
            .append("createDate", getCreateDate())
            .append("editDate", getEditDate())
            .append("istool", getIstool())
            .toString();
    }
}
